Skip to content

Add validator for hardware/targets.json and run it before builds - #236

Merged
pkendall64 merged 2 commits into
masterfrom
add-targets-validator
Jul 22, 2026
Merged

Add validator for hardware/targets.json and run it before builds#236
pkendall64 merged 2 commits into
masterfrom
add-targets-validator

Conversation

@jurgelenas

Copy link
Copy Markdown
Member

Validates vendor and device structure, platform and upload_methods values, and cross-checks each firmware against targets/*.ini: the _via_UART environment must exist and the platform resolved from its extends chain must match the device's declared platform. Environments not referenced by any target are reported as warnings, and --warn promotes warnings to errors. The build workflow gates the target matrix on validation, so nothing compiles when targets.json is invalid.

Validates vendor and device structure, platform and upload_methods
values, and cross-checks each firmware against targets/*.ini: the
_via_UART environment must exist and the platform resolved from its
extends chain must match the device's declared platform. Environments
not referenced by any target are reported as warnings, and --warn
promotes warnings to errors. The build workflow gates the target
matrix on validation, so nothing compiles when targets.json is
invalid.
@pkendall64
pkendall64 merged commit 437a4f4 into master Jul 22, 2026
110 checks passed
@pkendall64
pkendall64 deleted the add-targets-validator branch July 22, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants